package com.fxp.project.jiuselu.web.models.goods.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.fxp.project.jiuselu.web.models.goods.entity.JslGoods;
import com.fxp.project.jiuselu.web.models.goods.vo.GoodsListVo;
import com.fxp.project.jiuselu.web.models.goods.vo.GoodsVo;
import com.github.pagehelper.PageInfo;

import java.time.LocalDateTime;

/**
 * <p>
 * 主商品表 服务类
 * </p>
 *
 * @author Jason.Wang
 * @since 2021-11-01
 */
public interface IJslGoodsService extends IService<JslGoods> {

    /**
     * selectGoodsListPageInfo: 查询当前的产品分类<br/>
     *
     * @param cateId
     * @param extendCateId
     * @param thirdCateId
     * @param discover
     * @param sample
     * @param keyword
     * @param currentPage
     * @param pageSize
     * @param currentDate
     * @return
     * @author Kai.Wang
     * @date 2021/11/23 16:22
     */
    PageInfo<GoodsListVo> selectGoodsListPageInfo(Long cateId, Long extendCateId, long thirdCateId, Integer discover,
        Integer sample, String keyword, Integer currentPage, Integer pageSize, LocalDateTime currentDate,Integer salesCount,Integer attrPrice,Integer goodsSort);

    /**
     * selectGoodsVoByGoodsId: 获取当前商品的详细信息<br/>
     *
     * @param goodsId
     * @return
     * @author Jason.Wang
     * @date 2021/11/7 10:17 上午
     */
    GoodsVo selectGoodsVoByGoodsId(Long goodsId);
}
